-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
動けるようにする #1288
base: fix/openapi
Are you sure you want to change the base?
動けるようにする #1288
Conversation
…er to the controller
@Eraxyso ありがとうございます!
みたいな感じでお願いしたいです |
↑prの説明に追記しました |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
基本的に良さそうです、少しだけ確認したいことがあったのでコメントしました。
docs/swagger/swagger.yaml
Outdated
description: 回答したもの(answered)か未回答のもの(unanswered)かを選別 | ||
schema: | ||
$ref: "#/components/schemas/AnsweredType" | ||
# answeredInQuery: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この辺は使ってなかったからコメントアウトした感じ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
その通りです。Lintが警告を出しましたので
args: args{ | ||
userID: questionnairesTestUserID, | ||
sort: "", | ||
search: "", | ||
pageNum: 100000, | ||
pageNum: 1, | ||
onlyTargetingMe: true, | ||
onlyAdministratedByMe: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
すごい直感に反する命名なので、後でschemaから変えた方が良いかも。今はこれでOK
自分が管理者になっていないもののみ取得 (true), 管理者になっているものも含めてすべて取得 (false)。デフォルトはfalse。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今は多分管理者になっていないものを取得するのではなく、管理者であるもののみを取得する実装です。以前はnontargetがtrueの場合ターゲットではないものを取得していましたが、何かの新機能を移植するときロジックが逆になったようです。
…ups managenent for target sand admins
アンケート対象者&管理者のグループ管理
Closes #1261
controller testに関する部分はあと #1271 でやります
変更箇所リスト: